package com.ssfeng.youxia.service;

import com.ssfeng.youxia.entity.Sessions;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liyuhang
 * @since 2020-04-06
 */
public interface ISessionsService extends IService<Sessions> {

    List<Map<String, Object>> getOnlineUsers();

    void kickOutUser(String sessionId);

    int deleteExpiredSessions();
}
